import { FormSchema } from '@/components/Form';
import { BasicFormComponentKeys } from '@/components/Form/src/componentMap';
import { BasicColumn } from '@/components/Table';

export const basicSchemas: FormSchema[] = [
  {
    field: 'file',
    label: '',
    component: BasicFormComponentKeys.Upload,
    componentProps: {
      className: 'p-7 border border-dashed border-current rounded-lg',
      api: (() => { }) as any,
      helpText: '单份文件小于30M',
      maxNumber: 1,
      maxSize: 1024 * 30,
    },
  },
  {
    field: 'conpanyName',
    label: '签署方',
    component: BasicFormComponentKeys.Input,
    componentProps: {
      maxlength: 90,
      showCount: true,
    },
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'title',
    label: '签署流程标题',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const columns: BasicColumn[] = [
  {
    title: '流程id',
    dataIndex: 'id',
    width: 50,
  },
  {
    title: '发起方',
    dataIndex: 'conpanyName',
    width: 120,
  },
  {
    title: '签署方',
    dataIndex: 'doctorName',
    width: 120,
  },
];
